<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-3.1.0.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/diyUpload/css/webuploader.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/diyUpload/css/diyUpload.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/diyUpload/js/webuploader.html5only.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/diyUpload/js/diyUpload.js"></script>
</head>
<style>
*{ margin:0; padding:0;}
#box{ margin:50px auto; width:540px; min-height:400px; background:#f4f4f4}
</style>
<body>
<div id="box">
	<div id="test" ></div>
</div>
<script type="text/javascript">
$(function(){
$('#test').diyUpload({
	url:'../GoodsServlet?method=fileEnters',
	success:function( data ) {
		console.info( data );
	},
	error:function( err ) {
		console.info( err );	
	}
});

$('#as').diyUpload({
	url:'../GoodsServlet?method=fileEnters',
	success:function( data ) {
		console.info( data );
	},
	error:function( err ) {
		console.info( err );	
	},
	buttonText : '选择文件',
	chunked:true,
	chunkSize:512 * 1024,
	fileNumLimit:50,
	fileSizeLimit:500000 * 1024,
	fileSingleSizeLimit:50000 * 1024,
	accept: {}
});
})
</script>
</body>
</html>